package cn.study;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class AnimalTest extends Animal{

    public AnimalTest(String name){
        super(name);
    }

    @Override
    public void display(){
        super.display();
    }
    public static void main(String[] args) {
        AnimalTest animal = new AnimalTest("rabbit");
        animal.display();
        animal.eat("rabbit");
        animal.sleep();

        AnimalTest anm = new AnimalTest("tiger");
        anm.display();
        animal.eat("tiger");
        animal.sleep();

    }
}
